import http from '@/utils/http'

export function getdata() {
  return http.post('/home/index')
}

export function getMyInfo() {
  return http.post('/home/myinfo')
}

export function getContent(form) {
  return http.post('/home/getContnet', form)
}

export function getWxAppInfo() {
  return http.post('/home/getwxinfo')
}

export function uploadImg(file) {
  let fd = new FormData()
  fd.append('file', file)
  fd.append('filename', file.name)
  fd.append('type', 'app')
  return http.post('/upload_img', fd)
}

export function uploadUrl() {
  return '/upload_img'
}


export function resetAppsecret() {
  return http.post('/home/resetAppsecret')
}
